<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
    <div id="app">
      <p>{{content}}</p>
      <button v-on:click="content='新内容'">123</button>
      <button @click="content='新内容'">123</button>
      <button @click="update">123</button>
      <button @click="fn">123</button>
      <button @click="fn(200, $event)">123</button>
    </div>
</body>
<script src="./lib/vue.js"></script>
<script>
  var vm = new Vue({
    el: "#app",
    data: {
      content: "老数据"
    },
    methods:{
       update(){
          this.content = "新内容"
       },
       fn(event){
          console.log(event);
       },
       fn(value, event){
          console.log(value, event);
       }
    }
  })
</script>
</html>